package com.group01.service;

import com.group01.dto.Category.CategoryInsertInfoDTO;
import com.group01.dto.Category.CategoryUpdateInfoDTO;
import com.group01.pojo.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group01.result.CategoryPageTemplate;
import com.group01.result.Result;
import com.group01.vo.Category.CategoryGetPageVO;
import com.group01.vo.Category.CategoryInfoVO;

import java.util.List;

/**
* @author 19559
* @description 针对表【es_category(分类表)】的数据库操作Service
* @createDate 2024-06-21 15:33:03
*/
public interface CategoryService extends IService<Category> {

    Result<CategoryPageTemplate> getCategoryPageTree(String name, Integer pageNum, Integer pageSize);

    Result<List<CategoryGetPageVO>> getAllCategory();

    Result<CategoryInfoVO> getCategoryById(Integer id);

    Result<String> addCategory(CategoryInsertInfoDTO categoryInsertInfoDTO);

    Result<String> updateCategory(CategoryUpdateInfoDTO categoryUpdateInfoDTO);

    Result<String> deleteCategoryByIds(String ids);
}
